Skip to content

Fix prompt_filter.py crash on Python < 3.10 (macOS)#28

Merged
sfc-gh-uunnikrishnan merged 1 commit into
mainfrom
fix/prompt-filter-python39-compat
May 6, 2026
Merged

Fix prompt_filter.py crash on Python < 3.10 (macOS)#28
sfc-gh-uunnikrishnan merged 1 commit into
mainfrom
fix/prompt-filter-python39-compat

Conversation

@sfc-gh-uunnikrishnan
Copy link
Copy Markdown
Collaborator

Add from future import annotations to make PEP 604 union syntax (str | None) compatible with Python 3.7+. Fixes silent hook failure on macOS where Apple system python3 is 3.9.6.

Closes #27

.... Generated with Cortex Code

Add from __future__ import annotations to make PEP 604 union syntax
(str | None) compatible with Python 3.7+. Fixes silent hook failure
on macOS where Apple system python3 is 3.9.6.

Closes #27

.... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code)

Co-Authored-By: Cortex Code <noreply@snowflake.com>
@sfc-gh-uunnikrishnan sfc-gh-uunnikrishnan merged commit 486802d into main May 6, 2026
2 checks passed
@iamontheinet iamontheinet deleted the fix/prompt-filter-python39-compat branch May 6, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

prompt_filter.py UserPromptSubmit hook crashes on Python < 3.10, silently breaking auto-routing on macOS

1 participant